package com.klod.news.widget

import android.content.res.Resources
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.indication
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.size
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.FeaturedPlayList
import androidx.compose.material.icons.automirrored.filled.List
import androidx.compose.material.icons.automirrored.filled.Message
import androidx.compose.material.icons.automirrored.filled.Send
import androidx.compose.material.icons.automirrored.outlined.FeaturedPlayList
import androidx.compose.material.icons.automirrored.outlined.Message
import androidx.compose.material.icons.automirrored.outlined.Send
import androidx.compose.material.icons.filled.Home
import androidx.compose.material.icons.filled.Person
import androidx.compose.material.icons.outlined.Home
import androidx.compose.material.icons.outlined.Person
import androidx.compose.ui.graphics.vector.ImageVector
import com.klod.news.config.RouteConfig

data class BottomNavItem(
    val name: String,
    val route: String,
    val icon: ImageVector,
    val unselectedIcon: ImageVector,
)



val BottomNavItems = listOf(
    BottomNavItem(
        name = "首页",
        route = RouteConfig.ROUTE_HOME,
        icon = Icons.Filled.Home,
        unselectedIcon = Icons.Outlined.Home
    ),
    BottomNavItem(
        name = "发现",
        route = RouteConfig.ROUTE_RECOMMEND,
        icon = Icons.AutoMirrored.Filled.FeaturedPlayList,
        unselectedIcon = Icons.AutoMirrored.Outlined.FeaturedPlayList
    ),
    BottomNavItem(
        name = "发布",
        route = RouteConfig.ROUTE_PUBLISH,
        icon = Icons.AutoMirrored.Filled.Send,
        unselectedIcon = Icons.AutoMirrored.Outlined.Send
    ),
    BottomNavItem(
        name = "消息",
        route = RouteConfig.ROUTE_MESSAGE,
        icon = Icons.AutoMirrored.Filled.Message,
        unselectedIcon = Icons.AutoMirrored.Outlined.Message
    ),
    BottomNavItem(
        name = "我的",
        route = RouteConfig.ROUTE_USER,
        icon = Icons.Filled.Person,
        unselectedIcon = Icons.Outlined.Person
    )
)